//           TreeNode.cpp
//  Sat Sep  6 00:44:18 2008
//  Copyright  2008  Burim Kameri
//  <futureburim@web.de>

// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public
// License along with main.c; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
#ifndef SCENENODE_H_
#define SCENENODE_H_

#include <list>
#include <iostream>
#include "BaseRenderObject.h"


using namespace std;



class SceneNode : public BaseRenderObject
{
	private:	
		list<SceneNode*> 	_nodes;
		SceneNode* 			_parent;
		
	public:
		SceneNode( );
		virtual ~SceneNode();
		void AddChildNode(SceneNode* child);
		void SetParent( SceneNode* parent );
		SceneNode* GetParent( ) const;
		bool hasParent();
		//void DeleteChildNode( SceneNode* child );/TODO
		list<SceneNode*>* getChildNodes();
		void RenderChildObjects();
		long getPolygonNumRecursive();
		virtual long getPolygonNum();
};

#endif
